from tutor.scripts import *
from tutor.plugins.sympy import *

with display_block('Entradas'):
    R = oneof(Half, sqrt(2)/2, One, sqrt(2), sqrt(3), Two)
    rho = (R - r)/R**2

with display_block('Intermediarios'):
    Ix = R**3*pi/20
    Iz = R**3*pi/10
    Ix_nJ = R**2*pi/12
    Iz_nJ = R**2*pi/6
    M_nJ = pi
    M = R * pi / 3
    dis_4 = pi * R**4/2
    dis_5 = pi * R**4/4
    
with display_block('Iz'):
    iz_correta = Iz
    iz_jacob = Iz_nJ
    iz_outro = Ix
    iz_dis_1 = Ix_nJ 
    iz_dis_2 = M_nJ
    iz_dis_3 = M
    iz_dis_4 = dis_4
    iz_dis_5 = dis_5
    
with display_block('Ix'):
    ix_correta = Ix
    ix_jacob = Ix_nJ
    ix_outro = Iz
    ix_dis_1 = Iz_nJ 
    ix_dis_2 = M_nJ
    ix_dis_3 = M
    ix_dis_4 = dis_4
    ix_dis_5 = dis_5